//
//  DoctoryApplyCell.m
//  QuickCure1
//
//  Created by Ashzenki on 01/11/2016.
//  Copyright © 2016 maoge. All rights reserved.
//

#import "DoctoryApplyCell.h"
#import "DoctorApplyModel.h"

@interface DoctoryApplyCell ()

@property (weak, nonatomic) IBOutlet UIView *circleView;
@property (weak, nonatomic) IBOutlet UILabel *lb_patientName;
@property (weak, nonatomic) IBOutlet UILabel *lb_doctorName;
@property (weak, nonatomic) IBOutlet UILabel *lb_symptom;
@property (weak, nonatomic) IBOutlet UILabel *lb_doctorLevel;
@property (weak, nonatomic) IBOutlet UILabel *lb_hospitalName;
@property (weak, nonatomic) IBOutlet UILabel *lb_isExamine;
@property (weak, nonatomic) IBOutlet UILabel *lb_applyTime;

@end

@implementation DoctoryApplyCell

#pragma mark - 切圆角
- (void)awakeFromNib {
    [super awakeFromNib];
    
    _circleView.layer.cornerRadius = 30;
    _circleView.clipsToBounds = YES;
}

#pragma mark - 赋值
- (void)setModel:(DoctorApplyModel *)model {
    
    _model = model;
    
    _lb_patientName.font = MYROUNDFONT(18);
    
    _lb_doctorName.text = model.doctor_name;
    _lb_doctorName.font = MYROUNDFONT(18);
    
    _lb_symptom.text = model.symptom;
    _lb_symptom.font = MYROUNDFONT(18);
    
    _lb_doctorLevel.text = model.doctor_title_name;
    _lb_doctorLevel.font = MYROUNDFONT(18);
    
    _lb_hospitalName.text = model.doctor_hospital_name;
    _lb_hospitalName.font = MYROUNDFONT(18);
    
    _lb_applyTime.text = model.applyTime;
    _lb_applyTime.font = MYROUNDFONT(18);
    
    _lb_isExamine.font = MYROUNDFONT(16);
    
    switch (model.isExamine) {
        case 0:
            _lb_isExamine.text = @"未申请";
            _circleView.backgroundColor = [UIColor lightGrayColor];
            break;
        case 1:
            _lb_isExamine.text = @"已申请";
            _circleView.backgroundColor = [UIColor greenColor];
            break;
        case 2:
            _lb_isExamine.text = @"审核中";
            _circleView.backgroundColor = [UIColor orangeColor];
            break;
        case 3:
            _lb_isExamine.text = @"已就诊";
            _circleView.backgroundColor = [UIColor purpleColor];
            break;
        default:
            break;
    }
    
    
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    
}

- (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated {
    
}

@end



































